<!DOCTYPE html>
<html>
<head>
    <title>修改协议</title>
    <meta charset=utf-8>
    <meta name=viewport content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="../../../../../start/layui/css/layui.css">
    <script type="text/javascript" src="../../../../../start/layui/layui.js"></script>

</head>
<body>
<!--第一部分头部-->

    <!--第二部分总体设置-->
    <form class="layui-form" action="hahahaha">
  <div style="width: 100%;height: 40px;">
    <dd style="text-align-last: center;font-size:16px;">协议信息</dd>
</div>
<hr class="layui-border-cyan">

  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">运输单号：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" disabled="disabled" name="shipping" id="shipping"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                    <label class="layui-form-label">发车时间：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="departuretime" id="departuretime" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">运输状态：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="transportstatus" id="transportstatus"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">到达分站：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="arrivetostation" id="arrivetostation"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>

  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">到达城市：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="getcity" id="getcity"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">收货人：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="consignee" id="consignee"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">收货单位：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="receivingunit" id="receivingunit"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">车号：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="wagonnumber" id="wagonnumber"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>

<div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">司机：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="drivers" id="drivers"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">司机电话：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="driversphone" id="driversphone"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">货物名称：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" disabled="disabled" name="namegoods" id="namegoods"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">货物数量：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" disabled="disabled" name="goodsquantity" id="goodsquantity"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>


  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                        <label class="layui-form-label">货物重量：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" disabled="disabled" name="goodsweight" id="goodsweight"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">货物体积：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" disabled="disabled" name="goodsvolume" id="goodsvolume"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo grid-demo-bg1"><div class="layui-inline">
                    <label class="layui-form-label">开单时间：</label>
                    <div class="layui-input-inline">
                        <input type="text" name="billingtime" id="billingtime" lay-verify="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
    </div>
    <div class="layui-col-xs3">
      <div class="grid-demo"><div class="layui-inline">
                        <label class="layui-form-label">开单员：</label>
                        <div class="layui-input-inline" style="width:160px;">
                            <input type="text" name="billingclerk" id="billingclerk"  placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div></div>
    </div>
  </div>


  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs12">
      <div class="grid-demo grid-demo-bg1">
      <div class="layui-form-item layui-form-text" style="width:380px;">
                    <label class="layui-form-label">车辆备注</label>
                    <div class="layui-input-block">
                        <textarea disabled="disabled" name="vehicleremark" id="vehicleremark" placeholder="" class="layui-textarea"></textarea>
                    </div>
                </div></div>
    </div>
  </div>
  <div class="layui-row" style="margin-top:10px">
    <div class="layui-col-xs12">
      <div class="grid-demo">

            <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="formDemo" style="align-items: center">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary" style="align-items: center">重置</button>
        </div>
    </div>
      </div>
    </div>
  </div>

    </form>
</body>
<script>
    layui.use(['form', 'layedit', 'laydate','table'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
            ,table = layui.table;
            var $ = layui.jquery;
            //日期初始化
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#departuretime'
        });
        form.on('submit(formDemo)', function(data){
            $.ajax({
                type:'post'
                ,url:'../../../../updatedepartlist.action'
                ,data:data.field
                ,success:function(obj) {
                    if(obj.length>0){
                        parent.layer.close(1); //再执行关闭
                        //修改成功后刷新父界面
                        window.parent.location.reload();
                    }
                }
            });
            return false;
        });
    });
</script>
</html>